package com.aiti.lulian.controller.promotion;

import com.aiti.base.core.base.controller.WebController;
import com.aiti.base.core.constant.MessageCodeConstant;
import com.aiti.base.core.utils.message.Message;
import com.aiti.lulian.dto.CardPromotionDto;
import com.aiti.lulian.dto.CardPromotionWithdrawRecordDto;
import com.aiti.lulian.entity.crad.promotion.CardPromotion;
import com.aiti.lulian.entity.crad.promotion.CardPromotionSub;
import com.aiti.lulian.feign.CloudShowManagerSubService;
import com.aiti.lulian.service.ICardPromotionService;
import com.aiti.lulian.service.ICardPromotionSubService;
import com.aiti.lulian.service.ICardPromotionWithdrawRecordService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.LinkedHashMap;
import java.util.Map;

@RestController
@Api(tags = "名片推广提现控制层")
@RequestMapping("/card/promotion/withdraw")
public class CardPromotionWithDrawRecordController extends WebController {

    @Autowired
    private ICardPromotionWithdrawRecordService withdrawRecordService;

    @GetMapping("/page")
    public Message page(CardPromotionWithdrawRecordDto dto) {
        Page page = startPage(dto);
        return withdrawRecordService.withdrawRecordList(page, dto);
    }

}